#include "MesaCamila.h"
#include <GL/glu.h>
#include <GL/gl.h>
#include "gllib/Objects.h"
#include <math.h>

void MesaCamila::draw() {
    glPushMatrix();
    glColor3f(0.545, 0.27, 0.07);
    glTranslatef(-1.3, 0.6, 0.6);
    glScalef(0.12, 1.2, 0.12);
    gllibCube(1.0);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.545, 0.27, 0.07);
    glTranslatef(-1.3, 0.6, -0.6);
    glScalef(0.12, 1.2, 0.12);
    gllibCube(1.0);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.545, 0.27, 0.07);
    glTranslatef(1.3, 0.6, 0.6);
    glScalef(0.12, 1.2, 0.12);
    gllibCube(1.0);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.545, 0.27, 0.07);
    glTranslatef(1.3, 0.6, -0.6);
    glScalef(0.12, 1.2, 0.12);
    gllibCube(1.0);
    glPopMatrix();

    // Tampo:
    glEnable(GL_BLEND);
    glPushMatrix();
    glColor4f(1.0, 1.0, 1.0, 0.7);
    glTranslatef(0.0, 1.2, 0.0);
    glScalef(3.0, 0.085, 1.5);
    gllibCube(1.0);
    glPopMatrix();
    glDisable(GL_BLEND);
}
